from django.urls import path
from disease.views import (
    DepartmentModelListView,
    ScreenModelListView,
    CommonDiseasesModelListView,
    DiseaseListView,
    DiseaseArticlesModelListView,
    DiseaseArticleListView
)

urlpatterns = [
    # 获取科室信息
    path('departments/', DepartmentModelListView.as_view()),
    # 获取筛选信息
    path('screens/', ScreenModelListView.as_view()),
    # 获取常见疾病信息
    path('common_diseases/', CommonDiseasesModelListView.as_view()),
    # 获取常见疾病详情信息
    path('diseases/', DiseaseListView.as_view()),
    # 获取疾病信息
    path('disease_articles/<int:id>/', DiseaseArticlesModelListView.as_view()),
    # 获取疾病文章信息
    path('disease_articles_detail/<int:id>/', DiseaseArticleListView.as_view()),
]